package com.zjitc.dao;

import com.zjitc.model.User;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:14
 * @description:
 */
public interface UserDao {


  int checkUsername(@Param("username") String username);

  User findByUserNameAndPassword(
      @Param("username") String username,
      @Param("password") String password);


  void register(User user);


  String findEmailByUsername(String username);

  void updatePassword(@Param("username")String username, @Param("password")String password);

  User findByUid(Integer uid);

  User findUserByUsername(String username);
}

